package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GysptDeilikqMapper;
import com.ruoyi.gcgl.domain.GysptDeilikq;
import com.ruoyi.gcgl.service.IGysptDeilikqService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考勤机配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@Service
public class GysptDeilikqServiceImpl implements IGysptDeilikqService 
{
    @Autowired
    private GysptDeilikqMapper gysptDeilikqMapper;

    /**
     * 查询考勤机配置
     * 
     * @param id 考勤机配置主键
     * @return 考勤机配置
     */
    @Override
    public GysptDeilikq selectGysptDeilikqById(Long id)
    {
        return gysptDeilikqMapper.selectGysptDeilikqById(id);
    }

    /**
     * 查询考勤机配置列表
     * 
     * @param gysptDeilikq 考勤机配置
     * @return 考勤机配置
     */
    @Override
    public List<GysptDeilikq> selectGysptDeilikqList(GysptDeilikq gysptDeilikq)
    {
        return gysptDeilikqMapper.selectGysptDeilikqList(gysptDeilikq);
    }

    /**
     * 新增考勤机配置
     * 
     * @param gysptDeilikq 考勤机配置
     * @return 结果
     */
    @Override
    public int insertGysptDeilikq(GysptDeilikq gysptDeilikq)
    {
        return gysptDeilikqMapper.insertGysptDeilikq(gysptDeilikq);
    }

    /**
     * 修改考勤机配置
     * 
     * @param gysptDeilikq 考勤机配置
     * @return 结果
     */
    @Override
    public int updateGysptDeilikq(GysptDeilikq gysptDeilikq)
    {
        return gysptDeilikqMapper.updateGysptDeilikq(gysptDeilikq);
    }

    /**
     * 批量删除考勤机配置
     * 
     * @param ids 需要删除的考勤机配置主键
     * @return 结果
     */
    @Override
    public int deleteGysptDeilikqByIds(String ids)
    {
        return gysptDeilikqMapper.deleteGysptDeilikqByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考勤机配置信息
     * 
     * @param id 考勤机配置主键
     * @return 结果
     */
    @Override
    public int deleteGysptDeilikqById(Long id)
    {
        return gysptDeilikqMapper.deleteGysptDeilikqById(id);
    }
}
